package com.hgyc.mom.qms.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;

import com.hgyc.mom.common.annotation.Excel;
import com.hgyc.mom.core.mybatis.EQ;
import com.hgyc.mom.core.mybatis.Like;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 检测项
 * </p>
 *
 * @author fwj
 * @since 2025-06-25
 */
@Data
@TableName("qms_index")
@Schema(name="检测项对象", description="检测项对象")
public class QmsIndex implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "检测项ID")
    private Long id;

    @Excel(name = "检测项编码")
    @EQ
    @Schema(description = "检测项编码")
    private String indexCode;

    @Excel(name = "检测项名称")
    @Like
    @Schema(description = "检测项名称")
    private String indexName;

    @Excel(name = "检测项类型")
    @EQ
    @Schema(description = "检测项类型")
    private String indexType;

    @Excel(name = "检测工具")
    @Schema(description = "检测工具")
    private String qcTool;

    @Excel(name = "备注")
    @Schema(description = "备注")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建者")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新者")
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}